﻿@model PrivateMessageIndexModel
@using SmartStore.Web.Models.PrivateMessages;
@using SmartStore.Web.Framework.UI;
@{    
    Layout = "_Layout";
    Html.AddTitleParts(T("PageTitle.PrivateMessages").Text);

    Layout = "_MyAccount";
    ViewBag.PageClassToken = "privatemessages";
    ViewBag.PageTitle = T("PrivateMessages.PrivateMessages").Text;
}

@Html.SmartStore().TabStrip().Name("pm-tabs").HtmlAttributes(new { @class = "pm-tabs" }).SmartTabSelection(false).Style(TabsStyle.Material).Responsive(true, "<md").Items(x =>
{
    x.Add().Text(@T("PrivateMessages.Inbox"))
        .Content(Html.Action("Inbox", new { page = Model.InboxPage, tab = "inbox" }).ToString())
        .Selected(true);

    x.Add().Text(@T("PrivateMessages.SentItems"))
        .Content(Html.Action("SentItems", new { page = Model.SentItemsPage, tab = "sent" }).ToString())
        .Selected(Model.SentItemsTabSelected);
}).TabContentHeaderContent(TabContentHeader()).Fade(false)

@helper TabContentHeader()
{
    <a href="javascript:void()" class="btn btn-secondary btn-no-border btn-flat offcanvas-closer rounded-0" title="@T("Common.Close")">
        <i class="fa fa-chevron-left"></i>
        <span>@T("Common.Close")</span>
    </a>
}
